home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / QuickDraw™ GX Libraries / CIncludes / font library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  2.9 KB  |  103 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        font library.h
  3.  
  4.     Copyright:    © 1984-1995 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef fontLibraryIncludes
  13. #define fontLibraryIncludes
  14.  
  15.     #ifndef fontTypesIncludes
  16. #include "font types.h"
  17. /*    #include "math types.h"                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22.     #endif
  23.  
  24.     #ifndef graphicsTypesIncludes
  25. #include "graphics types.h"
  26.     #endif
  27.  
  28.     #ifndef fontRoutinesIncludes
  29. #include "font routines.h"
  30. /*    #include "layout types.h"                                    */
  31. /*    #include "graphics linkage.h"                                */
  32. /*    #include "scaler types.h"                                    */
  33. /*        #include "sfnt types.h"                                    */
  34.     #endif
  35.  
  36.     #ifdef __cplusplus
  37. extern "C" {
  38.     #endif
  39.  
  40. #define weightVariationTag 0x77676874
  41.  
  42. #define widthVariationTag 0x77647468
  43.  
  44. #define slantVariationTag 0x736c6e74
  45.  
  46. #define opticalScaleVariationTag 0x6f70737a
  47.  
  48. #define prefwghtweighting 0x00010000
  49.  
  50. #define prefwdthweighting 0x00020000
  51.  
  52. #define prefslntweighting 0x00010000
  53.  
  54. #define prefcontweighting 0x00040000
  55.  
  56. enum commonFonts {
  57.     firstCommonFont,
  58.     chicagoFont                    = firstCommonFont,
  59.     courierFont,
  60.     genevaFont,
  61.     helveticaFont,
  62.     monacoFont,
  63.     newyorkFont,
  64.     symbolFont,
  65.     timesFont,
  66.     lastCommonFont                = timesFont
  67. };
  68.  
  69. typedef long commonFont;
  70.  
  71. enum matchingStyles {
  72.     noMatching                    = 0,
  73.     useStyleMatching,
  74.     useVariationsMatching,
  75.     useTextFaceMatching            = 4
  76. };
  77.  
  78. typedef long matchingStyle;
  79.  
  80. extern gxFont GetCommonFont(commonFont font);
  81. extern void SetShapeCommonFont(gxShape target, commonFont font);
  82. extern void SetStyleCommonFont(gxStyle target, commonFont font);
  83. extern gxFont FindCNameFont(gxFontName meaning, const char name[]);
  84. extern gxFont FindPNameFont(gxFontName meaning, const unsigned char name[]);
  85. extern long FindFontCName(gxFont fontID, gxFontName meaning, char name[]);
  86. extern long FindFontPName(gxFont fontID, gxFontName meaning, unsigned char name[]);
  87. extern long FindStyleFontCName(gxStyle source, gxFontName meaning, char name[]);
  88. extern long FindStyleFontPName(gxStyle source, gxFontName meaning, unsigned char name[]);
  89. extern void SetStylePNamedFont(gxStyle target, const unsigned char name[]);
  90. extern void SetStyleCNamedFont(gxStyle target, const char *name);
  91. extern long CountFontFamilies(void);
  92. extern gxFont FindFontFamily(long index, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long nameLength, const unsigned char *name);
  93. extern long CountFontStyles(gxFont family);
  94. extern gxFont FindFontStyle(gxFont family, long index, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long nameLength, const unsigned char *name);
  95. extern void SetMatchingStyle(gxFont targetFamily, gxStyle theStyle, matchingStyle matchInfo);
  96. extern gxStyle ReturnMatchingStyle(gxFont targetFamily, gxStyle theStyle, matchingStyle matchInfo);
  97.     #ifdef __cplusplus
  98. }
  99.     #endif
  100.  
  101. #endif
  102.  
  103.